<form id="add-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST">
    <div class="form-group">
        <label for="name" class="control-label col-xs-12 col-sm-2">{:__('title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="title" name="row[title]" data-rule="required;title" placeholder="{:__('title')}" value="{$row.title}"/>
        </div>
    </div>

    <div class="form-group">
        <label for="content" class="control-label col-xs-12 col-sm-2">{:__('content')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-content" class="form-control editor" rows="5" name="row[content]" cols="50">{$row.content|htmlentities}</textarea>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('cateid')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('row[cateid]', $catelist, $row.cateid, ['class'=>'selectpicker', 'required'=>''])}
        </div>
    </div>

    <div class="form-group">
        <label for="name" class="control-label col-xs-12 col-sm-2">{:__('busid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="busid_text" name="row[busid_text]" placeholder="{:__('busid')}" value="{$row.business.nickname}"/>
            <input type="hidden" name="row[busid]" id="busid" data-rule="required;busid" value="{$row.busid}">
        </div>
    </div>

    <div class="form-group">
        <label for="stock" class="control-label col-xs-12 col-sm-2">{:__('point')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="number" class="form-control" id="point" name="row[point]" data-rule="required;point" value="{$row.point}" />
        </div>
    </div>

    <div class="form-group">
        <label for="name" class="control-label col-xs-12 col-sm-2">{:__('accept')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="accept_text" name="row[accept_text]" placeholder="{:__('accept')}" value="{$row.accepted.nickname}"/>
            <input type="hidden" name="row[accept]" id="accept" value="{$row.accept}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('row[status]', $statusList, $row.status, ['class'=>'selectpicker', 'required'=>''])}
        </div>
    </div>
    <div class="form-group hidden layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
  
</form>